home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Graphics Programming (2nd Edition) / Visual Basic Graphics Programming 2nd Edition.iso / Src / Ch10 / MandConf.frm (.txt) < prev    next >
Visual Basic Form  |  1999-06-09  |  26KB  |  861 lines

  1. VERSION 5.00
  2. Begin VB.Form frmConfig 
  3.    BorderStyle     =   3  'Fixed Dialog
  4.    Caption         =   "Configuration"
  5.    ClientHeight    =   3750
  6.    ClientLeft      =   45
  7.    ClientTop       =   330
  8.    ClientWidth     =   4395
  9.    LinkTopic       =   "Form1"
  10.    MaxButton       =   0   'False
  11.    MinButton       =   0   'False
  12.    ScaleHeight     =   3750
  13.    ScaleWidth      =   4395
  14.    ShowInTaskbar   =   0   'False
  15.    StartUpPosition =   3  'Windows Default
  16.    Begin VB.CommandButton cmdDefault 
  17.       Caption         =   "Default"
  18.       Height          =   375
  19.       Left            =   480
  20.       TabIndex        =   70
  21.       Top             =   3240
  22.       Width           =   735
  23.    End
  24.    Begin VB.CommandButton cmdRow 
  25.       Height          =   255
  26.       Index           =   5
  27.       Left            =   120
  28.       Picture         =   "MandConf.frx":0000
  29.       Style           =   1  'Graphical
  30.       TabIndex        =   69
  31.       Top             =   2880
  32.       Width           =   255
  33.    End
  34.    Begin VB.CommandButton cmdRow 
  35.       Height          =   255
  36.       Index           =   4
  37.       Left            =   120
  38.       Picture         =   "MandConf.frx":00DA
  39.       Style           =   1  'Graphical
  40.       TabIndex        =   68
  41.       Top             =   2520
  42.       Width           =   255
  43.    End
  44.    Begin VB.CommandButton cmdRow 
  45.       Height          =   255
  46.       Index           =   3
  47.       Left            =   120
  48.       Picture         =   "MandConf.frx":01B4
  49.       Style           =   1  'Graphical
  50.       TabIndex        =   67
  51.       Top             =   2160
  52.       Width           =   255
  53.    End
  54.    Begin VB.CommandButton cmdRow 
  55.       Height          =   255
  56.       Index           =   2
  57.       Left            =   120
  58.       Picture         =   "MandConf.frx":028E
  59.       Style           =   1  'Graphical
  60.       TabIndex        =   66
  61.       Top             =   1800
  62.       Width           =   255
  63.    End
  64.    Begin VB.CommandButton cmdRow 
  65.       Height          =   255
  66.       Index           =   1
  67.       Left            =   120
  68.       Picture         =   "MandConf.frx":0368
  69.       Style           =   1  'Graphical
  70.       TabIndex        =   65
  71.       Top             =   1440
  72.       Width           =   255
  73.    End
  74.    Begin VB.CommandButton cmdRow 
  75.       Height          =   255
  76.       Index           =   0
  77.       Left            =   120
  78.       Picture         =   "MandConf.frx":0442
  79.       Style           =   1  'Graphical
  80.       TabIndex        =   64
  81.       Top             =   1080
  82.       Width           =   255
  83.    End
  84.    Begin VB.CommandButton cmdColumn 
  85.       Height          =   255
  86.       Index           =   7
  87.       Left            =   3000
  88.       Picture         =   "MandConf.frx":051C
  89.       Style           =   1  'Graphical
  90.       TabIndex        =   63
  91.       Top             =   720
  92.       Width           =   255
  93.    End
  94.    Begin VB.CommandButton cmdColumn 
  95.       Height          =   255
  96.       Index           =   6
  97.       Left            =   2640
  98.       Picture         =   "MandConf.frx":05F6
  99.       Style           =   1  'Graphical
  100.       TabIndex        =   62
  101.       Top             =   720
  102.       Width           =   255
  103.    End
  104.    Begin VB.CommandButton cmdColumn 
  105.       Height          =   255
  106.       Index           =   5
  107.       Left            =   2280
  108.       Picture         =   "MandConf.frx":06D0
  109.       Style           =   1  'Graphical
  110.       TabIndex        =   61
  111.       Top             =   720
  112.       Width           =   255
  113.    End
  114.    Begin VB.CommandButton cmdColumn 
  115.       Height          =   255
  116.       Index           =   4
  117.       Left            =   1920
  118.       Picture         =   "MandConf.frx":07AA
  119.       Style           =   1  'Graphical
  120.       TabIndex        =   60
  121.       Top             =   720
  122.       Width           =   255
  123.    End
  124.    Begin VB.CommandButton cmdColumn 
  125.       Height          =   255
  126.       Index           =   3
  127.       Left            =   1560
  128.       Picture         =   "MandConf.frx":0884
  129.       Style           =   1  'Graphical
  130.       TabIndex        =   59
  131.       Top             =   720
  132.       Width           =   255
  133.    End
  134.    Begin VB.CommandButton cmdColumn 
  135.       Height          =   255
  136.       Index           =   2
  137.       Left            =   1200
  138.       Picture         =   "MandConf.frx":095E
  139.       Style           =   1  'Graphical
  140.       TabIndex        =   58
  141.       Top             =   720
  142.       Width           =   255
  143.    End
  144.    Begin VB.CommandButton cmdColumn 
  145.       Height          =   255
  146.       Index           =   1
  147.       Left            =   840
  148.       Picture         =   "MandConf.frx":0A38
  149.       Style           =   1  'Graphical
  150.       TabIndex        =   57
  151.       Top             =   720
  152.       Width           =   255
  153.    End
  154.    Begin VB.PictureBox picColor 
  155.       BackColor       =   &H00400040&
  156.       Height          =   255
  157.       Index           =   47
  158.       Left            =   3000
  159.       ScaleHeight     =   195
  160.       ScaleWidth      =   195
  161.       TabIndex        =   56
  162.       Top             =   2880
  163.       Width           =   255
  164.    End
  165.    Begin VB.PictureBox picColor 
  166.       BackColor       =   &H00400000&
  167.       Height          =   255
  168.       Index           =   46
  169.       Left            =   2640
  170.       ScaleHeight     =   195
  171.       ScaleWidth      =   195
  172.       TabIndex        =   55
  173.       Top             =   2880
  174.       Width           =   255
  175.    End
  176.    Begin VB.PictureBox picColor 
  177.       BackColor       =   &H00404000&
  178.       Height          =   255
  179.       Index           =   45
  180.       Left            =   2280
  181.       ScaleHeight     =   195
  182.       ScaleWidth      =   195
  183.       TabIndex        =   54
  184.       Top             =   2880
  185.       Width           =   255
  186.    End
  187.    Begin VB.PictureBox picColor 
  188.       BackColor       =   &H00004000&
  189.       Height          =   255
  190.       Index           =   44
  191.       Left            =   1920
  192.       ScaleHeight     =   195
  193.       ScaleWidth      =   195
  194.       TabIndex        =   53
  195.       Top             =   2880
  196.       Width           =   255
  197.    End
  198.    Begin VB.PictureBox picColor 
  199.       BackColor       =   &H00004040&
  200.       Height          =   255
  201.       Index           =   43
  202.       Left            =   1560
  203.       ScaleHeight     =   195
  204.       ScaleWidth      =   195
  205.       TabIndex        =   52
  206.       Top             =   2880
  207.       Width           =   255
  208.    End
  209.    Begin VB.PictureBox picColor 
  210.       BackColor       =   &H00404080&
  211.       Height          =   255
  212.       Index           =   42
  213.       Left            =   1200
  214.       ScaleHeight     =   195
  215.       ScaleWidth      =   195
  216.       TabIndex        =   51
  217.       Top             =   2880
  218.       Width           =   255
  219.    End
  220.    Begin VB.PictureBox picColor 
  221.       BackColor       =   &H00000040&
  222.       Height          =   255
  223.       Index           =   41
  224.       Left            =   840
  225.       ScaleHeight     =   195
  226.       ScaleWidth      =   195
  227.       TabIndex        =   50
  228.       Top             =   2880
  229.       Width           =   255
  230.    End
  231.    Begin VB.PictureBox picColor 
  232.       BackColor       =   &H00000000&
  233.       Height          =   255
  234.       Index           =   40
  235.       Left            =   480
  236.       ScaleHeight     =   195
  237.       ScaleWidth      =   195
  238.       TabIndex        =   49
  239.       Top             =   2880
  240.       Width           =   255
  241.    End
  242.    Begin VB.CommandButton cmdColumn 
  243.       Height          =   255
  244.       Index           =   0
  245.       Left            =   480
  246.       Picture         =   "MandConf.frx":0B12
  247.       Style           =   1  'Graphical
  248.       TabIndex        =   48
  249.       Top             =   720
  250.       Width           =   255
  251.    End
  252.    Begin VB.PictureBox picColor 
  253.       BackColor       =   &H00800080&
  254.       Height          =   255
  255.       Index           =   39
  256.       Left            =   3000
  257.       ScaleHeight     =   195
  258.       ScaleWidth      =   195
  259.       TabIndex        =   47
  260.       Top             =   2520
  261.       Width           =   255
  262.    End
  263.    Begin VB.PictureBox picColor 
  264.       BackColor       =   &H00800000&
  265.       Height          =   255
  266.       Index           =   38
  267.       Left            =   2640
  268.       ScaleHeight     =   195
  269.       ScaleWidth      =   195
  270.       TabIndex        =   46
  271.       Top             =   2520
  272.       Width           =   255
  273.    End
  274.    Begin VB.PictureBox picColor 
  275.       BackColor       =   &H00808000&
  276.       Height          =   255
  277.       Index           =   37
  278.       Left            =   2280
  279.       ScaleHeight     =   195
  280.       ScaleWidth      =   195
  281.       TabIndex        =   45
  282.       Top             =   2520
  283.       Width           =   255
  284.    End
  285.    Begin VB.PictureBox picColor 
  286.       BackColor       =   &H00008000&
  287.       Height          =   255
  288.       Index           =   36
  289.       Left            =   1920
  290.       ScaleHeight     =   195
  291.       ScaleWidth      =   195
  292.       TabIndex        =   44
  293.       Top             =   2520
  294.       Width           =   255
  295.    End
  296.    Begin VB.PictureBox picColor 
  297.       BackColor       =   &H00008080&
  298.       Height          =   255
  299.       Index           =   35
  300.       Left            =   1560
  301.       ScaleHeight     =   195
  302.       ScaleWidth      =   195
  303.       TabIndex        =   43
  304.       Top             =   2520
  305.       Width           =   255
  306.    End
  307.    Begin VB.PictureBox picColor 
  308.       BackColor       =   &H00004080&
  309.       Height          =   255
  310.       Index           =   34
  311.       Left            =   1200
  312.       ScaleHeight     =   195
  313.       ScaleWidth      =   195
  314.       TabIndex        =   42
  315.       Top             =   2520
  316.       Width           =   255
  317.    End
  318.    Begin VB.PictureBox picColor 
  319.       BackColor       =   &H00000080&
  320.       Height          =   255
  321.       Index           =   33
  322.       Left            =   840
  323.       ScaleHeight     =   195
  324.       ScaleWidth      =   195
  325.       TabIndex        =   41
  326.       Top             =   2520
  327.       Width           =   255
  328.    End
  329.    Begin VB.PictureBox picColor 
  330.       BackColor       =   &H00404040&
  331.       Height          =   255
  332.       Index           =   32
  333.       Left            =   480
  334.       ScaleHeight     =   195
  335.       ScaleWidth      =   195
  336.       TabIndex        =   40
  337.       Top             =   2520
  338.       Width           =   255
  339.    End
  340.    Begin VB.PictureBox picColor 
  341.       BackColor       =   &H00C000C0&
  342.       Height          =   255
  343.       Index           =   31
  344.       Left            =   3000
  345.       ScaleHeight     =   195
  346.       ScaleWidth      =   195
  347.       TabIndex        =   39
  348.       Top             =   2160
  349.       Width           =   255
  350.    End
  351.    Begin VB.PictureBox picColor 
  352.       BackColor       =   &H00C00000&
  353.       Height          =   255
  354.       Index           =   30
  355.       Left            =   2640
  356.       ScaleHeight     =   195
  357.       ScaleWidth      =   195
  358.       TabIndex        =   38
  359.       Top             =   2160
  360.       Width           =   255
  361.    End
  362.    Begin VB.PictureBox picColor 
  363.       BackColor       =   &H00C0C000&
  364.       Height          =   255
  365.       Index           =   29
  366.       Left            =   2280
  367.       ScaleHeight     =   195
  368.       ScaleWidth      =   195
  369.       TabIndex        =   37
  370.       Top             =   2160
  371.       Width           =   255
  372.    End
  373.    Begin VB.PictureBox picColor 
  374.       BackColor       =   &H0000C000&
  375.       Height          =   255
  376.       Index           =   28
  377.       Left            =   1920
  378.       ScaleHeight     =   195
  379.       ScaleWidth      =   195
  380.       TabIndex        =   36
  381.       Top             =   2160
  382.       Width           =   255
  383.    End
  384.    Begin VB.PictureBox picColor 
  385.       BackColor       =   &H0000C0C0&
  386.       Height          =   255
  387.       Index           =   27
  388.       Left            =   1560
  389.       ScaleHeight     =   195
  390.       ScaleWidth      =   195
  391.       TabIndex        =   35
  392.       Top             =   2160
  393.       Width           =   255
  394.    End
  395.    Begin VB.PictureBox picColor 
  396.       BackColor       =   &H000040C0&
  397.       Height          =   255
  398.       Index           =   26
  399.       Left            =   1200
  400.       ScaleHeight     =   195
  401.       ScaleWidth      =   195
  402.       TabIndex        =   34
  403.       Top             =   2160
  404.       Width           =   255
  405.    End
  406.    Begin VB.PictureBox picColor 
  407.       BackColor       =   &H000000C0&
  408.       Height          =   255
  409.       Index           =   25
  410.       Left            =   840
  411.       ScaleHeight     =   195
  412.       ScaleWidth      =   195
  413.       TabIndex        =   33
  414.       Top             =   2160
  415.       Width           =   255
  416.    End
  417.    Begin VB.PictureBox picColor 
  418.       BackColor       =   &H00404040&
  419.       Height          =   255
  420.       Index           =   24
  421.       Left            =   480
  422.       ScaleHeight     =   195
  423.       ScaleWidth      =   195
  424.       TabIndex        =   32
  425.       Top             =   2160
  426.       Width           =   255
  427.    End
  428.    Begin VB.PictureBox picColor 
  429.       BackColor       =   &H00FF00FF&
  430.       Height          =   255
  431.       Index           =   23
  432.       Left            =   3000
  433.       ScaleHeight     =   195
  434.       ScaleWidth      =   195
  435.       TabIndex        =   31
  436.       Top             =   1800
  437.       Width           =   255
  438.    End
  439.    Begin VB.PictureBox picColor 
  440.       BackColor       =   &H00FF0000&
  441.       Height          =   255
  442.       Index           =   22
  443.       Left            =   2640
  444.       ScaleHeight     =   195
  445.       ScaleWidth      =   195
  446.       TabIndex        =   30
  447.       Top             =   1800
  448.       Width           =   255
  449.    End
  450.    Begin VB.PictureBox picColor 
  451.       BackColor       =   &H00FFFF00&
  452.       Height          =   255
  453.       Index           =   21
  454.       Left            =   2280
  455.       ScaleHeight     =   195
  456.       ScaleWidth      =   195
  457.       TabIndex        =   29
  458.       Top             =   1800
  459.       Width           =   255
  460.    End
  461.    Begin VB.PictureBox picColor 
  462.       BackColor       =   &H0000FF00&
  463.       Height          =   255
  464.       Index           =   20
  465.       Left            =   1920
  466.       ScaleHeight     =   195
  467.       ScaleWidth      =   195
  468.       TabIndex        =   28
  469.       Top             =   1800
  470.       Width           =   255
  471.    End
  472.    Begin VB.PictureBox picColor 
  473.       BackColor       =   &H0000FFFF&
  474.       Height          =   255
  475.       Index           =   19
  476.       Left            =   1560
  477.       ScaleHeight     =   195
  478.       ScaleWidth      =   195
  479.       TabIndex        =   27
  480.       Top             =   1800
  481.       Width           =   255
  482.    End
  483.    Begin VB.PictureBox picColor 
  484.       BackColor       =   &H000080FF&
  485.       Height          =   255
  486.       Index           =   18
  487.       Left            =   1200
  488.       ScaleHeight     =   195
  489.       ScaleWidth      =   195
  490.       TabIndex        =   26
  491.       Top             =   1800
  492.       Width           =   255
  493.    End
  494.    Begin VB.PictureBox picColor 
  495.       BackColor       =   &H000000FF&
  496.       Height          =   255
  497.       Index           =   17
  498.       Left            =   840
  499.       ScaleHeight     =   195
  500.       ScaleWidth      =   195
  501.       TabIndex        =   25
  502.       Top             =   1800
  503.       Width           =   255
  504.    End
  505.    Begin VB.PictureBox picColor 
  506.       BackColor       =   &H00C0C0C0&
  507.       Height          =   255
  508.       Index           =   16
  509.       Left            =   480
  510.       ScaleHeight     =   195
  511.       ScaleWidth      =   195
  512.       TabIndex        =   24
  513.       Top             =   1800
  514.       Width           =   255
  515.    End
  516.    Begin VB.PictureBox picColor 
  517.       BackColor       =   &H00FF80FF&
  518.       Height          =   255
  519.       Index           =   15
  520.       Left            =   3000
  521.       ScaleHeight     =   195
  522.       ScaleWidth      =   195
  523.       TabIndex        =   23
  524.       Top             =   1440
  525.       Width           =   255
  526.    End
  527.    Begin VB.PictureBox picColor 
  528.       BackColor       =   &H00FF8080&
  529.       Height          =   255
  530.       Index           =   14
  531.       Left            =   2640
  532.       ScaleHeight     =   195
  533.       ScaleWidth      =   195
  534.       TabIndex        =   22
  535.       Top             =   1440
  536.       Width           =   255
  537.    End
  538.    Begin VB.PictureBox picColor 
  539.       BackColor       =   &H00FFFF80&
  540.       Height          =   255
  541.       Index           =   13
  542.       Left            =   2280
  543.       ScaleHeight     =   195
  544.       ScaleWidth      =   195
  545.       TabIndex        =   21
  546.       Top             =   1440
  547.       Width           =   255
  548.    End
  549.    Begin VB.PictureBox picColor 
  550.       BackColor       =   &H0080FF80&
  551.       Height          =   255
  552.       Index           =   12
  553.       Left            =   1920
  554.       ScaleHeight     =   195
  555.       ScaleWidth      =   195
  556.       TabIndex        =   20
  557.       Top             =   1440
  558.       Width           =   255
  559.    End
  560.    Begin VB.PictureBox picColor 
  561.       BackColor       =   &H0080FFFF&
  562.       Height          =   255
  563.       Index           =   11
  564.       Left            =   1560
  565.       ScaleHeight     =   195
  566.       ScaleWidth      =   195
  567.       TabIndex        =   19
  568.       Top             =   1440
  569.       Width           =   255
  570.    End
  571.    Begin VB.PictureBox picColor 
  572.       BackColor       =   &H0080C0FF&
  573.       Height          =   255
  574.       Index           =   10
  575.       Left            =   1200
  576.       ScaleHeight     =   195
  577.       ScaleWidth      =   195
  578.       TabIndex        =   18
  579.       Top             =   1440
  580.       Width           =   255
  581.    End
  582.    Begin VB.PictureBox picColor 
  583.       BackColor       =   &H008080FF&
  584.       Height          =   255
  585.       Index           =   9
  586.       Left            =   840
  587.       ScaleHeight     =   195
  588.       ScaleWidth      =   195
  589.       TabIndex        =   17
  590.       Top             =   1440
  591.       Width           =   255
  592.    End
  593.    Begin VB.PictureBox picColor 
  594.       BackColor       =   &H00E0E0E0&
  595.       Height          =   255
  596.       Index           =   8
  597.       Left            =   480
  598.       ScaleHeight     =   195
  599.       ScaleWidth      =   195
  600.       TabIndex        =   16
  601.       Top             =   1440
  602.       Width           =   255
  603.    End
  604.    Begin VB.PictureBox picColor 
  605.       BackColor       =   &H00FFC0FF&
  606.       Height          =   255
  607.       Index           =   7
  608.       Left            =   3000
  609.       ScaleHeight     =   195
  610.       ScaleWidth      =   195
  611.       TabIndex        =   15
  612.       Top             =   1080
  613.       Width           =   255
  614.    End
  615.    Begin VB.PictureBox picColor 
  616.       BackColor       =   &H00FFC0C0&
  617.       Height          =   255
  618.       Index           =   6
  619.       Left            =   2640
  620.       ScaleHeight     =   195
  621.       ScaleWidth      =   195
  622.       TabIndex        =   14
  623.       Top             =   1080
  624.       Width           =   255
  625.    End
  626.    Begin VB.PictureBox picColor 
  627.       BackColor       =   &H00FFFFC0&
  628.       Height          =   255
  629.       Index           =   5
  630.       Left            =   2280
  631.       ScaleHeight     =   195
  632.       ScaleWidth      =   195
  633.       TabIndex        =   13
  634.       Top             =   1080
  635.       Width           =   255
  636.    End
  637.    Begin VB.PictureBox picColor 
  638.       BackColor       =   &H00C0FFC0&
  639.       Height          =   255
  640.       Index           =   4
  641.       Left            =   1920
  642.       ScaleHeight     =   195
  643.       ScaleWidth      =   195
  644.       TabIndex        =   12
  645.       Top             =   1080
  646.       Width           =   255
  647.    End
  648.    Begin VB.PictureBox picColor 
  649.       BackColor       =   &H00C0FFFF&
  650.       Height          =   255
  651.       Index           =   3
  652.       Left            =   1560
  653.       ScaleHeight     =   195
  654.       ScaleWidth      =   195
  655.       TabIndex        =   11
  656.       Top             =   1080
  657.       Width           =   255
  658.    End
  659.    Begin VB.PictureBox picColor 
  660.       BackColor       =   &H00C0E0FF&
  661.       Height          =   255
  662.       Index           =   2
  663.       Left            =   1200
  664.       ScaleHeight     =   195
  665.       ScaleWidth      =   195
  666.       TabIndex        =   10
  667.       Top             =   1080
  668.       Width           =   255
  669.    End
  670.    Begin VB.PictureBox picColor 
  671.       BackColor       =   &H00C0C0FF&
  672.       Height          =   255
  673.       Index           =   1
  674.       Left            =   840
  675.       ScaleHeight     =   195
  676.       ScaleWidth      =   195
  677.       TabIndex        =   9
  678.       Top             =   1080
  679.       Width           =   255
  680.    End
  681.    Begin VB.PictureBox picColor 
  682.       BackColor       =   &H00FFFFFF&
  683.       Height          =   255
  684.       Index           =   0
  685.       Left            =   480
  686.       ScaleHeight     =   195
  687.       ScaleWidth      =   195
  688.       TabIndex        =   8
  689.       Top             =   1080
  690.       Width           =   255
  691.    End
  692.    Begin VB.CheckBox ColorCheck 
  693.       BackColor       =   &H00F0CAA6&
  694.       Caption         =   "Sky Blue"
  695.       Height          =   255
  696.       Index           =   9
  697.       Left            =   120
  698.       TabIndex        =   7
  699.       Top             =   4440
  700.       Width           =   1575
  701.    End
  702.    Begin VB.CheckBox ColorCheck 
  703.       BackColor       =   &H00FFFFFF&
  704.       Caption         =   "White"
  705.       Height          =   255
  706.       Index           =   255
  707.       Left            =   1800
  708.       TabIndex        =   6
  709.       Top             =   4440
  710.       Width           =   1575
  711.    End
  712.    Begin VB.CommandButton cmdNone 
  713.       Caption         =   "None"
  714.       Height          =   375
  715.       Left            =   2520
  716.       TabIndex        =   5
  717.       Top             =   3240
  718.       Width           =   735
  719.    End
  720.    Begin VB.CommandButton cmdAll 
  721.       Caption         =   "All"
  722.       Height          =   375
  723.       Left            =   1680
  724.       TabIndex        =   4
  725.       Top             =   3240
  726.       Width           =   735
  727.    End
  728.    Begin VB.CommandButton cmdOk 
  729.       Caption         =   "Ok"
  730.       Default         =   -1  'True
  731.       Height          =   375
  732.       Left            =   3480
  733.       TabIndex        =   3
  734.       Top             =   120
  735.       Width           =   735
  736.    End
  737.    Begin VB.CommandButton cmdCancel 
  738.       Cancel          =   -1  'True
  739.       Caption         =   "Cancel"
  740.       Height          =   375
  741.       Left            =   3480
  742.       TabIndex        =   2
  743.       Top             =   720
  744.       Width           =   735
  745.    End
  746.    Begin VB.TextBox txtMaxIterations 
  747.       Height          =   285
  748.       Left            =   1560
  749.       TabIndex        =   1
  750.       Text            =   "100"
  751.       Top             =   120
  752.       Width           =   495
  753.    End
  754.    Begin VB.Label Label1 
  755.       Caption         =   "Maximum Iterations"
  756.       Height          =   255
  757.       Index           =   0
  758.       Left            =   120
  759.       TabIndex        =   0
  760.       Top             =   120
  761.       Width           =   1455
  762.    End
  763. Attribute VB_Name = "frmConfig"
  764. Attribute VB_GlobalNameSpace = False
  765. Attribute VB_Creatable = False
  766. Attribute VB_PredeclaredId = True
  767. Attribute VB_Exposed = False
  768. Option Explicit
  769. ' The form this one is configuring.
  770. Private FractalForm As Form
  771. Private Sub cmdAll_Click()
  772. Dim i As Integer
  773.     For i = picColor.LBound To picColor.UBound
  774.         picColor(i).BorderStyle = vbFixedSingle
  775.     Next i
  776. End Sub
  777. Private Sub cmdCancel_Click()
  778.     Unload Me
  779. End Sub
  780. ' Select the colors in this column.
  781. Private Sub cmdColumn_Click(Index As Integer)
  782. Dim r As Integer
  783. Dim c As Integer
  784.     For r = 0 To 5
  785.         For c = 0 To 7
  786.             If c = Index Then
  787.                 picColor(r * 8 + c).BorderStyle = vbFixedSingle
  788.             Else
  789.                 picColor(r * 8 + c).BorderStyle = vbBSNone
  790.             End If
  791.         Next c
  792.     Next r
  793. End Sub
  794. ' Select some default colors.
  795. Private Sub cmdDefault_Click()
  796.     cmdRow_Click 2
  797. End Sub
  798. Private Sub cmdNone_Click()
  799. Dim i As Integer
  800.     For i = picColor.LBound To picColor.UBound
  801.         picColor(i).BorderStyle = vbBSNone
  802.     Next i
  803. End Sub
  804. ' Save the changes.
  805. Private Sub cmdOk_Click()
  806. Dim new_iter As Integer
  807. Dim i As Integer
  808.     ' Get the number of iterations.
  809.     new_iter = FractalForm.MaxIterations
  810.     On Error Resume Next
  811.     new_iter = CInt(txtMaxIterations)
  812.     On Error GoTo 0
  813.     If new_iter < 1 Then new_iter = 1
  814.     FractalForm.MaxIterations = new_iter
  815.     ' Save the selected colors.
  816.     FractalForm.ResetColors
  817.     For i = picColor.LBound To picColor.UBound
  818.         If picColor(i).BorderStyle = vbFixedSingle _
  819.             Then FractalForm.AddColor picColor(i).BackColor
  820.     Next i
  821.     Unload Me
  822. End Sub
  823. Private Sub cmdRow_Click(Index As Integer)
  824. Dim r As Integer
  825. Dim c As Integer
  826.     For r = 0 To 5
  827.         For c = 0 To 7
  828.             If r = Index Then
  829.                 picColor(r * 8 + c).BorderStyle = vbFixedSingle
  830.             Else
  831.                 picColor(r * 8 + c).BorderStyle = vbBSNone
  832.             End If
  833.         Next c
  834.     Next r
  835. End Sub
  836. ' Initialize the options.
  837. Public Sub Initialize(ByVal frm As Form)
  838. Dim i As Integer
  839. Dim j As Integer
  840.     Set FractalForm = frm
  841.     txtMaxIterations.Text = Format$(FractalForm.MaxIterations)
  842.     For i = picColor.LBound To picColor.UBound
  843.         ' See if this color is selected.
  844.         picColor(i).BorderStyle = vbBSNone
  845.         For j = 1 To FractalForm.numcolors
  846.             If FractalForm.color(j) = picColor(i).BackColor Then
  847.                 ' The color is selected.
  848.                 picColor(i).BorderStyle = vbFixedSingle
  849.                 Exit For
  850.             End If
  851.         Next j
  852.     Next i
  853. End Sub
  854. Private Sub picColor_Click(Index As Integer)
  855.     If picColor(Index).BorderStyle = vbBSNone Then
  856.         picColor(Index).BorderStyle = vbFixedSingle
  857.     Else
  858.         picColor(Index).BorderStyle = vbBSNone
  859.     End If
  860. End Sub
  861.